package cc.uncarbon.module.custom.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 后台管理-新增/编辑技师 DTO
 */
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AdminStaffInsertOrUpdateDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "主键ID", hidden = true, title = "仅更新时使用")
    private Long id;

    @Schema(description = "昵称", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(max = 16, message = "【昵称】最长16位")
    @NotBlank(message = "昵称不能为空")
    private String nickName;

    @Schema(description = "姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(max = 16, message = "【姓名】最长16位")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @Schema(description = "性别")
    private Integer sex;

    @Schema(description = "介绍")
    @Size(max = 255, message = "【介绍】最长255位")
    private String intro;

    @Schema(description = "电话")
    @Size(max = 15, message = "【电话】最长15位")
    private String telephone;

    @Schema(description = "头像")
    @Size(max = 128, message = "【头像】最长128位")
    private String avatar;

    @Schema(description = "当月营业额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "当月营业额不能为空")
    private Long monthEarnMoney;

    @Schema(description = "当月服务人数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "当月服务人数不能为空")
    private Integer monthCustomerNum;

    @Schema(description = "身份证正面")
    @Size(max = 128, message = "【身份证正面】最长128位")
    private String sfzImgz;

    @Schema(description = "身份证反面")
    @Size(max = 128, message = "【身份证反面】最长128位")
    private String sfzIngf;

    @Schema(description = "服务次数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "服务次数不能为空")
    private Integer serviceNum;

    @Schema(description = "从业年限")
    private Integer jobYear;

    @Schema(description = "状态（0禁用，1正常")
    private EnabledStatusEnum status;

    @Schema(description = "店铺id")
    private Long storeId;

}
